package cn.org.alexander.execption;

import cn.org.alexander.entity.response.ResultCode;

/**
 * @author Alexander
 * @date 2022/5/21
 * @desc 自定义code
 */
public class CustomResultCode implements ResultCode {

    private String code;
    private String msg;

    public CustomResultCode(String code,String msg) {
        this.code=code;
        this.msg=msg;
    }

    @Override
    public boolean success() {
        return false;
    }

    @Override
    public String code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
